package com.yanjiali.model.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;

/**
 * @Package: com.yanjiali.com.yanjiali.com.yanjiali.model.resp
 * @Author: yanjiali
 * @Created: 2025/4/12 16:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "登录的响应数据")
public class LoginResp {

    @ApiModelProperty(value = "登录生成的 token")
    private String token;

    @ApiModelProperty(value = "登录生成的 refreshToken")
    private String refreshToken;

    @ApiModelProperty(value = "登录生成的 authorities 权限数据")
    private List<SimpleGrantedAuthority> authorities;
}
